/* chimaera_file-table.c : store the access condition of files
 *
 * ====================================================================
 * Copyright (c) 2008-2009 Chimaera team.  All rights reserved.
 *
 *
 * @author kkndyu
 * @mail kkndyu@gmail.com
 * ====================================================================
 */

#ifndef SVN_LIBSVN_FS_CHIMAERA_USER_INDEX_TABLE_H
#define SVN_LIBSVN_FS_CHIMAERA_USER_INDEX_TABLE_H

#define APU_WANT_DB
#include <apu_want.h>

#include "svn_fs.h"

#include "../fs.h"
#include "../trail.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */



int 
svn_fs_bdb__open_chimaera_user_index_table(DB **chimaeraui,
                                     DB_ENV *env,
                                     svn_boolean_t create);




svn_error_t *
svn_fs_bdb__get_chimaera_user_index(apr_int32_t *user_recno,
					svn_string_t *userid,  svn_fs_t *fs, apr_pool_t *pool);



svn_error_t *
svn_fs_bdb__put_chimaera_user_index(apr_int32_t *user_recno,
									svn_string_t *userid, svn_fs_t *fs, 
									DB_TXN *txn,apr_pool_t *pool);

svn_error_t *
svn_fs_bdb__del_chimaera_user_index(svn_string_t *userid, 
									svn_fs_t *fs, 
									DB_TXN *txn,apr_pool_t *pool);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* SVN_LIBSVN_FS_CHIMAERA_USER_INDEX_TABLE_H */

